/**
 * Created by kule on 2017/10/30.
 */
export const promiseDelay=(time=1000,result,isReject)=>{
    return new Promise((resolve,reject)=>{
        setTimeout(()=>{
            if(isReject){
                reject(result);
                return;
            }
            resolve(result);
        },time);
    });
};
export default promiseDelay;